<br>
<br>
<br>
<p><span class="semi-bold">内容：</span><?= $title?></p>
<p><span class="semi-bold">总数：</span><?= $count ?> 条</p>
<br>
<? if($times === 0): ?>
    <button onclick="$.Export.do(<?= $i+1 ?>)" type="button" class="btn btn-success btn-cons">
        <i class="icon-cloud-download"></i>&nbsp;&nbsp;<span class="bold">导出全部数据</span>
    </button>
<? else: ?>
    <div class="alert">
        <h4>注意：<br>由于您要导出的数据较大（> <?= $export_size ?> 条），系统自动分割为多份文件，每份文件最大容纳 <?= $export_size ?> 条数据。</h4>
        <br>
        <? for($i=0; $i<=$times; $i++): ?>
            <button onclick="$.Export.do(<?= $i+1 ?>)" type="button" class="btn btn-success btn-cons">
                <i class="icon-cloud-download"></i>&nbsp;&nbsp;<span class="bold">导出 Part.<?= $i+1 ?></span>
            </button>
        <? endfor ?>
    </div>
<? endif ?>
<script type="text/javascript">
    $.Export = {
        query: '<?= $query ?>',

        do: function(page)
        {
            var page = $.T.to_int(page);
            var opt  = {width: 800,height:500, lock: true, opacity: 0.75, title: ''}; 
            window.open($.G.domain+'member/export/?export_page='+page+'&'+$.Export.query);
        }
    }
</script>